const Token = "token"
const UserInfo = "userInfo"
const CartList = "cartList"


//设置，获取，移除 token
export function setToken(str) {
	return uni.setStorageSync(Token, (str))
}

export function getToken() {
	return uni.getStorageSync(Token)
}

export function removeToken() {
	return uni.removeStorageSync(Token)
}

//设置，获取，移除 token
export function setUserInfo(obj) {
	return uni.setStorageSync(UserInfo, (obj))
}

export function getUserInfo() {
	return uni.getStorageSync(UserInfo)
}

export function removeUserInfo() {
	return uni.removeStorageSync(UserInfo)
}

//设置，获取，移除 购物车列表
export function setCartList(obj) {
	return uni.setStorageSync(CartList, (obj))
}

export function getCartList() {
	return uni.getStorageSync(CartList)
}

export function removeCartList() {
	return uni.removeStorageSync(CartList)
}